package cn.itsource.feign;

import cn.itsource.AjaxResult;
import cn.itsource.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server",fallbackFactory = StoreServiceFallback.class)
public interface StoreService {
    @PostMapping("/store/add")
    AjaxResult add(@RequestBody Store store);
}
